package com.zadtek.sharkRider.util.gmap;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by e on 2017/10/7.
 */

public class Address implements Parcelable {
    public String address;
    public double lat;
    public double lng;
    public String title;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.address);
        dest.writeDouble(this.lat);
        dest.writeDouble(this.lng);
        dest.writeString(this.title);
    }

    public Address() {
    }

    protected Address(Parcel in) {
        this.address = in.readString();
        this.lat = in.readDouble();
        this.lng = in.readDouble();
        this.title = in.readString();
    }

    public static final Creator<Address> CREATOR = new Creator<Address>() {
        @Override
        public Address createFromParcel(Parcel source) {
            return new Address(source);
        }

        @Override
        public Address[] newArray(int size) {
            return new Address[size];
        }
    };
}
